//
//  SHIAPVerifyManger.h
//  Supireader
//
//  Created by syh on 2020/6/2.
//  Copyright © 2020 syh. All rights reserved.
//  1.6.1验证

#import <Foundation/Foundation.h>



NS_ASSUME_NONNULL_BEGIN

@interface SHIAPVerifyManger : NSObject

/*
* 改变某笔交易的验证状态.
*
* @param transactionIdentifier         交易模型唯一标识.
*/
//- (void)updatePaymentTransactionModelStateWithTransactionIdentifier:(NSString *)transactionIdentifier;

/** 删除所有的  交易模型 */
- (void)delAllNotification;

/**
 * 添加需要验证的 model.
 */
- (void)appendPaymentTransactionModel:(BLIAPTransactionOrder *)transactionModel;
/**
 * 指定交易标识的交易是否已经持久化到了 keychain 中了.
 */
- (BOOL)transactionDidStoreInKeyChainWithTransactionIdentifier:(NSString *)transactionIdentifier;

/**
 * 某笔交易是否在之前已经和后台验证完成, 如果是就删掉这笔交易.
 */
- (BOOL)paymentTransactionDidFinishFromServiceAndDeleteWhenExisted:(SKPaymentTransaction *)transaction;

/** 删除对应的订单 */
- (BOOL)paymentDeleteWhenExisted:(BLIAPTransactionOrder *)order transaction:(SKPaymentTransaction *)transaction;
/** 获取所有订单 */
- (NSMutableArray *)fetchAllPayment;

/** 获取所有账号的未完成订单 */
- (NSArray *)fetchAllCountPayment;

@end

NS_ASSUME_NONNULL_END
